package Top_Interview_Questions_Review._008Two_Pointers;

/**
 * @Author: 吕庆龙
 * @Date: 2020/3/11 12:13
 * <p>
 * 功能描述:
 */
public class _0344 {

    public void reverseString(char[] s) {
        int left = 0;
        int right = s.length - 1;

        char temp;

        while (left < right) {
            temp = s[left];
            s[left] = s[right];
            s[right] = temp;
            left++;
            right--;
        }
        return;
    }
}
